package inventory.service;


import inventory.entity.Role;
import inventory.entity.po.NoticePo;
import inventory.entity.po.ReparationPo;

import java.util.List;

public interface FeedbackService {
     /**
     * @param launcher
     * @param noticeContext
     * @return
     */
    int addNotice(String launcher, String noticeContext);
    int deleteNoticeById(String notice_id);
//    ResultData queryNotice();
    void updateNoticeById(String noticeId, String noticeContent);
    List<NoticePo> selectNoticeByLauncherRoleId(String launcherRoleId);
    /**
     * 新增保修
     * 根据保修id删除
     * 根据用户id查看所有保修
     * 根据保修id处理
     * @param reparationPo
     * @return
     */
    int insert(ReparationPo reparationPo);
    List<ReparationPo> queryRepairByUserId(String userId);
    int updateReparationPoByreparationId(String reparationId,String userId,String decide);//新增update
    int deleteReparationPoByreparationId(String reparationId);



    Role selectPidByReparationerId(String reparationerId);
    Role selectPidByRoleId(String roleId);

    List<NoticePo> selectAllNoticePo();
}
